<?php

class Application_Model_DbTable_Response extends Zend_Db_Table_Abstract {

    protected $_name = 'response';
	
    public function getResponse($messageId){
        $rows = $this->fetchAll('messageId = '. $messageId);
        return $rows;
	}
		
	public function createResponse($text,$messageId){
		$row = $this->createRow();
		$row->text = $text;
		$row->messageId = $messageId;
		$row->save();
	}
}
